package com.yz.platform.modules.sys.service.impl;

import com.yz.platform.modules.sys.dao.SysUserGroupDao;
import com.yz.platform.modules.sys.entity.SysUserGroupEntity;
import com.yz.platform.modules.sys.service.SysUserGroupService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("sysUserGroupService")
public class SysUserGroupServiceImpl implements SysUserGroupService {

	@Autowired
	private SysUserGroupDao sysUserGroupDao;
	
	@Override
	public SysUserGroupEntity queryObject(Integer groupId){
		return sysUserGroupDao.queryObject(groupId);
	}
	
	@Override
	public List<SysUserGroupEntity> queryList(Map<String, Object> map){
		return sysUserGroupDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysUserGroupDao.queryTotal(map);
	}
	
	@Override
	public void save(SysUserGroupEntity sysUserGroup){
		sysUserGroupDao.save(sysUserGroup);
	}
	
	@Override
	public void update(SysUserGroupEntity sysUserGroup){
		sysUserGroupDao.update(sysUserGroup);
	}
	
	@Override
	public void delete(Integer groupId){
		sysUserGroupDao.delete(groupId);
	}
	
	@Override
	public void deleteBatch(Integer[] groupIds){
		sysUserGroupDao.deleteBatch(groupIds);
	}
	
}
